@import '../../styles/variables.scss';

.carousel-banner {
  margin-bottom: 0;
  
  .banner-item {
    .banner-card {
      border-radius: $border-radius-lg;
      overflow: hidden;
      box-shadow: $box-shadow-base;
      cursor: pointer;
      transition: all 0.3s ease;
      
      &:hover {
        transform: translateY(-4px);
        box-shadow: $box-shadow-lg;
      }
      
      .ant-card-body {
        padding: 0;
      }
      
      .banner-image {
        position: relative;
        height: 500px;
        overflow: hidden;
        
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          transition: transform 0.3s ease;
        }
        
        &:hover img {
          transform: scale(1.05);
        }
        
        .banner-overlay {
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.1) 100%
          );
          display: flex;
          align-items: flex-end;
          padding: $spacing-xl;
          
          .banner-content {
            color: $white;
            
            .banner-title {
              font-size: $font-size-xxl;
              font-weight: 600;
              margin-bottom: $spacing-sm;
              text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            }
            
            .banner-description {
              font-size: $font-size-lg;
              margin: 0;
              opacity: 0.9;
              text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
            }
          }
        }
      }
    }
  }
  
  // 自定义轮播图指示器样式
  :global(.custom-dots) {
    bottom: 20px;
    
    li {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background-color: rgba($white, 0.5);
      border: 2px solid transparent;
      transition: all 0.3s ease;
      
      &.slick-active {
        background-color: $primary-color;
        border-color: $white;
        transform: scale(1.2);
      }
      
      button {
        display: none;
      }
    }
  }
  
  // 自定义箭头样式
  :global(.ant-carousel .slick-arrow) {
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba($white, 0.8);
    color: $text-color;
    font-size: 18px;
    transition: all 0.3s ease;
    
    &:hover {
      background-color: $white;
      color: $primary-color;
      transform: scale(1.1);
    }
    
    &.slick-prev {
      left: 20px;
    }
    
    &.slick-next {
      right: 20px;
    }
  }
}
